Merge pull request #73 from romoloman/master
[openXsensor.git] / oXs_Configurator / Python 37 Sources / oxsMultiplex.py
blob9a4190513e8f9701b103b268b592908a55f59c8a
1 from oxsConfig import ttk , W , E , fMultiplex , multiplexLine1Var , multiplexLine2Var , multiplexLine3Var , multiplexLine4Var , multiplexLine5Var ,\
2 multiplexLine6Var , multiplexLine7Var , multiplexLine8Var , multiplexLine9Var
4 #define SETUP_MULTIPLEX_DATA_TO_SEND \
5 # 5 , REL_ALTIMETER , 1 , 1 , 0 , -16384 , 16383 , \
6 # 6 , VERTICAL_SPEED , 1 , 1 , 0, -500 , 500 , \
7 # 7 , ALTIMETER_MAX , 1 , 1 , 0 , -16384 , 16383
8 # // 8 , VOLT_1 , 1, 1 , 0 , -16384 , 16383
9 # // 6 , CURRENTMA , 1 , 1, 0 , -16384 , 16383 ,\
10 # // 7 , MILLIAH , 1 , 1, 0 , -16384 , 16383
11 # // 7 , CELL_TOT , 1 , 1 , 0 , -16384 , 16383 , \
12 # // 4 , VOLT_4 , 1 , 1 , 0 , -16384 , 16383 , \
13 # // 9 , PPM , 1 , 1 , 0 , -16384 , 16383
14 # // 3 , ALTIMETER , 1 , 1 , 0 , -16384 , 16383 , \
15 ttk.Label(fMultiplex, text="For one or several display line number, select the data to be sent" ).grid(column= 0, row=1, columnspan=2, padx= (15,5), pady=(25,5) , sticky=(E))
16 ttk.Label(fMultiplex, text="1" ).grid(column= 0, row=2, padx= (15,5), pady=(10,5) , sticky=('E'))
17 ttk.Label(fMultiplex, text="2" ).grid(column= 0, row=3, padx= (15,5), pady=(10,5) , sticky=('E'))
18 ttk.Label(fMultiplex, text="3" ).grid(column= 0, row=4, padx= (15,5), pady=(10,5) , sticky=('E'))
19 ttk.Label(fMultiplex, text="4" ).grid(column= 0, row=5, padx= (15,5), pady=(10,5) , sticky=('E'))
20 ttk.Label(fMultiplex, text="5" ).grid(column= 0, row=6, padx= (15,5), pady=(10,5) , sticky=('E'))
21 ttk.Label(fMultiplex, text="6" ).grid(column= 0, row=7, padx= (15,5), pady=(10,5) , sticky=('E'))
22 ttk.Label(fMultiplex, text="7" ).grid(column= 0, row=8, padx= (15,5), pady=(10,5) , sticky=('E'))
23 ttk.Label(fMultiplex, text="8" ).grid(column= 0, row=9, padx= (15,5), pady=(10,5) , sticky=('E'))
24 ttk.Label(fMultiplex, text="9" ).grid(column= 0, row=10, padx= (15,5), pady=(10,5) , sticky=('E'))
26 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING'
28 MultiplexLine1Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine1Var,
29 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
30 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
31 state="readonly")
32 MultiplexLine1Box.grid(column=1, row=2, pady=(10,5) ,sticky=('W') )
33 MultiplexLine2Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine2Var,
34 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
35 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
36 state="readonly")
37 MultiplexLine2Box.grid(column=1, row=3, pady=(10,5) ,sticky=('W') )
38 MultiplexLine3Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine3Var,
39 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
40 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
41 state="readonly")
42 MultiplexLine3Box.grid(column=1, row=4, pady=(10,5) ,sticky=('W') )
43 MultiplexLine4Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine4Var,
44 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
45 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
46 state="readonly")
47 MultiplexLine4Box.grid(column=1, row=5, pady=(10,5) ,sticky=('W') )
48 MultiplexLine5Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine5Var,
49 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
50 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
51 state="readonly")
52 MultiplexLine5Box.grid(column=1, row=6, pady=(10,5) ,sticky=('W') )
53 MultiplexLine6Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine6Var,
54 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
55 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
56 state="readonly")
57 MultiplexLine6Box.grid(column=1, row=7, pady=(10,5) ,sticky=('W') )
58 MultiplexLine7Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine7Var,
59 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
60 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
61 state="readonly")
62 MultiplexLine7Box.grid(column=1, row=8, pady=(10,5) ,sticky=('W') )
63 MultiplexLine8Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine8Var,
64 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
65 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
66 state="readonly")
67 MultiplexLine8Box.grid(column=1, row=9, pady=(10,5) ,sticky=('W') )
68 MultiplexLine9Box = ttk.Combobox(fMultiplex, textvariable=multiplexLine9Var,
69 values=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'REL_ALTIMETER',
70 'VERTICAL_SPEED', 'ALTIMETER_MAX', 'CURRENTMA' , 'MILLIAH' , 'CELL_TOT', 'PPM', 'GPS_COURSE', 'GPS_SPEED', 'GPS_ALTITUDE', 'GPS_DISTANCE', 'GPS_BEARING' ),
71 state="readonly")
72 MultiplexLine9Box.grid(column=1, row=10, pady=(10,5) ,sticky=('W') )